Data Science in Chemistry by Thorsten Gressling
Author:Thorsten Gressling [Thorsten Gressling]
Language: eng
Format: epub
Publisher: De Gruyter
Published: 2020-10-30T00:00:00+00:00
# Analyze coordinates in a trajectory (MDAnalysis) # author: MDAnalysis team # license: GPL-2 # code: github.com/MDAnalysis/â¦/examples/ # activity: active (2020) # index: 53-2 import MDAnalysis from MDAnalysis.tests.datafiles import PSF, DCD # test trajectory import numpy.linalg u = MDAnalysis.Universe(PSF,DCD) # always start with a Universe # can access via segid (4AKE) and atom name # we take the first atom named N and the last atom named C nterm = u.select_atoms('segid 4AKE and name N')[0] cterm = u.select_atoms('segid 4AKE and name C')[-1] bb = u.select_atoms('protein and backbone') # a selection (AtomGroup) for ts in u.trajectory: # iterate through all frames r = cterm.position - nterm.position # end-to-end vector from atom positions d = numpy.linalg.norm(r) # end-to-end distance rgyr = bb.radius_of_gyration() # method of AtomGroup print("frame = {0}: d = {1} A, Rgyr = {2} A".format( ts.frame, d, rgyr))
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(4331)
Alchemy and Alchemists by C. J. S. Thompson(3555)
The Elements by Theodore Gray(3104)
The Club by A.L. Brooks(2956)
How to Make Your Own Soap by Sally Hornsey(2941)
Drugs Unlimited by Mike Power(2632)
Wheels of Life by Anodea Judith(2184)
Cracking the LSAT, 2012 Edition by Princeton Review(2000)
Cracking the Sat French Subject Test, 2013-2014 Edition by The Princeton Review(1913)
The Flavor Matrix by James Briscione(1863)
Perfume by Jean-Claude Ellena(1849)
The Cosmic Machine: The Science That Runs Our Universe and the Story Behind It by Scott Bembenek(1782)
The Thing Around Your Neck by Chimamanda Ngozi Adichie(1767)
MCAT Physics and Math Review by Princeton Review(1720)
1000 Multiple-Choice Questions in Organic Chemistry by Organic Chemistry Academy(1693)
Handbook of Modern Sensors by Jacob Fraden(1690)
Synchrotron Light Sources and Free-Electron Lasers by Eberhard J. Jaeschke Shaukat Khan Jochen R. Schneider & Jerome B. Hastings(1668)
Cracking the SAT Premium Edition with 6 Practice Tests, 2017 by Princeton Review(1616)
A is for Arsenic: The Poisons of Agatha Christie (Bloomsbury Sigma) by Kathryn Harkup(1575)